package com.alibaba.shop.common.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {
    public static Date getTime(int years){
        Calendar calendar=Calendar.getInstance();
        calendar.add(Calendar.YEAR,years);
        return calendar.getTime();
    }
}
